package edu.scau.cxq.gp.service.impl;

import edu.scau.cxq.gp.entity.dto.GoodsSignDTO;
import edu.scau.cxq.gp.entity.Goods;
import edu.scau.cxq.gp.mapper.GoodsMapper;
import edu.scau.cxq.gp.service.IGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 存储货物信息 服务实现类
 * </p>
 *
 * @author tlc
 * @since 2022-01-30
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {

    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public List<GoodsSignDTO> findGoodsSigns() {
        return goodsMapper.selectAllSignOfGoods();
    }
}
